#include <stdio.h>

int main() {
    double profit, bonus;

    // 输入利润
    printf("请输入当月利润（万元）：");
    scanf("%lf", &profit);

    // 计算奖金
    if (profit <= 10) 
        bonus = profit * 0.10;
    else if (profit <= 20) 
        bonus = 10 * 0.10 + (profit - 10) * 0.075;
    else if (profit <= 40)
        bonus = 10 * 0.10 + 10 * 0.075 + (profit - 20) * 0.05;
    else if (profit <= 60) 
        bonus = 10 * 0.10 + 10 * 0.075 + 20 * 0.05 + (profit - 40) * 0.03;
    else if (profit <= 100) 
        bonus = 10 * 0.10 + 10 * 0.075 + 20 * 0.05 + 20 * 0.03 + (profit - 60) * 0.015;
    else 
        bonus = 10 * 0.10 + 10 * 0.075 + 20 * 0.05 + 20 * 0.03 + 40 * 0.015 + (profit - 100) * 0.01;

    // 输出奖金
    printf("应发奖金数为：%.2f万元\n", bonus);
    return 0;
}